package com.ktjy.comm;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "room")
public class RoomProperties {
//    @Value("${room.title}")
    private String title;

//    @Value("${room.addr}")
    private String addr;

//    @Value("${room.count}")
    private int count;

    public RoomProperties(String title, String addr, int count) {
        this.title = title;
        this.addr = addr;
        this.count = count;
    }

    public RoomProperties() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
